package com.wd.tech.net;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.Priority;
import com.wd.tech.Api.App;
import com.wd.tech.R;

/**
 * date:2020/7/2
 * author:王成虎(13671)
 * month:七月
 * function:
 */
public class NetGlide {

    public static void GlideImage(String url, ImageView imageView){
        Glide.with(App.mContext).load(url)
                //错误图
                .error(R.mipmap.ic_launcher)
                .priority(Priority.HIGH)
                .placeholder(R.mipmap.ic_launcher)
                .into(imageView);
    }

}
